<?php
return array(
	'renderPartial' => true,
	'gridId' => 'hcs-grid',
	'searchColumns' => array(
		'name',
		'star'=>array('dropDownList',Yii::app()->enum->options('basic.hotelStar')),
		'province' => array(
			'class' => 'LinkageField',
			'name' => 'district',
			'fields' => array(
				array('province', 1),
				array('city', 2),
				array('district', 3)
			)
		),
	),
	
	'dataColumns' => array(
		'id',
		'name',
		array(
			'name' => 'star',
			'value' => 'Yii::app()->enum->lookup("basic.hotelStar", $data->star)',
		),
		array(
			'name' => 'districtInfo',
			'value' => '
				Yii::app()->enum->lookup("district", $data->province) . " ".
				Yii::app()->enum->lookup("district", $data->city) . " ".
				Yii::app()->enum->lookup("district", $data->district)
			',
		),
		array(
			'header' => '操作',
			'class' => 'ButtonColumn',
			'template' => '{select}',
			'buttons' => array(
				'select' => array(
					'label' => '选择',
					'url' => 'Yii::app()->controller->createUrl("info", array("id"=>$data->id))',
					'options' => array(
						'class' => 'hcs-btn-select',
					),
				)
			),
		),
	),
	'_import' => array(
		array('*', 'actions.admin//*'),
	),
);
?>